Simplifying regular expressions further
نویسندگان
چکیده
We describe a cumulative series of transformations to simplify regular expressions, and investigate their effectiveness cost. Transformations depending on increasingly powerful comparisons expressions give results clearly superior commonly used algebraic simplifications. Early in the series, efficient enabled by language-invariant attributes are surprisingly effective. Later expressed languages made feasible bounding size subexpressions which they applied. set out principles our transformations, address some key implementation issues, evaluate systematic test measurements.
منابع مشابه
Simplifying Regular Expressions
We consider the efficient simplification of regular expressions and suggest a quantitative comparison of heuristics for simplifying regular expressions. To this end, we propose a new normal form for regular expressions, which outperforms previous heuristics while still being computable in linear time. This allows us to determine an exact bound for the relation between the two prevalent measures...
متن کاملSimplifying Regular Expressions: A Quantitative Perspective
In this work, we consider the efficient simplification of regular expressions. We suggest a quantitative comparison of heuristics for simplifying regular expressions. We propose a new normal form for regular expressions, which outperforms previous heuristics while still being computable in linear time. We apply this normal form to determine an exact bound for the relation between the two most c...
متن کاملSimplifying Text Processing with Grammatically Aware Regular Expressions
In our paper we introduce Grammatically Aware Regular expression (GARE) and describe its usage using examples from moral consequences retrieval task. GARE is an extension to the regular expression concept that overcomes many of the difficulties with traditional regexp by adding Normalization (e.g., searching all grammatical forms with basic form of a verb or adjective is possible) or POS awaren...
متن کاملSimplifying Probabilistic Expressions in Causal Inference
Obtaining a non-parametric expression for an interventional distribution is one of the most fundamental tasks in causal inference. Such an expression can be obtained for an identifiable causal effect by an algorithm or by manual application of do-calculus. Often we are left with a complicated expression which can lead to biased or inefficient estimates when missing data or measurement errors ar...
متن کاملCuts in Regular Expressions
Most software packages with regular expression matching engines offer operators that extend the classical regular expressions, such as counting, intersection, complementation, and interleaving. Some of the most popular engines, for example those of Java and Perl, also provide operators that are intended to control the nondeterminism inherent in regular expressions. We formalize this notion in t...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Journal of Symbolic Computation
سال: 2022
ISSN: ['1095-855X', '0747-7171']
DOI: https://doi.org/10.1016/j.jsc.2021.08.003